package com.bridgeintelligent.tag.webserver.dim.mgmt.api;

import lombok.Data;

/**
 * Created by JackCheung on 2019/9/9 10:24 PM.
 */
@Data
public class DimRep<T> {

    //返回数据
    private T data;
    //返回码
    private int code;
    //返回消息
    private String msg;

    private String custAmount;

    public DimRep(T data, int code, String msg) {
        this.data = data;
        this.code = code;
        this.msg = msg;
    }

    public DimRep(T data, int code, String msg,String custAmount) {
        this.data = data;
        this.code = code;
        this.msg = msg;
        this.custAmount = custAmount;
    }

    public DimRep(T data, int code) {
        this.data = data;
        this.code = code;
    }

    public DimRep(int code) {
        this.code = code;
    }

    public DimRep(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
